package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.SysUser;

import java.util.List;

public interface SysUserMapper {
    SysUser login(@Param("account") String account, @Param("password") String password);
    List<SysUser> selectUserList(@Param("realName") String realName, @Param("roleId") Integer roleId, @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);
    int count(@Param("realName") String realName,@Param("roleId") Integer roleId);
    String selectRoleIdName(Integer roleId);
//    boolean getPwdTrue(@Param("sysUser") SysUser sysUser,@Param("password") String password);
    int updatePwd(@Param("id") long id ,@Param("newpassword") String newpassword);
    int add(SysUser sysUser);
    SysUser getAccountExist(String account);
}
